package com.tarena.all;
import java.awt.*;
import java.applet.*;

public class TextApplet extends Applet {

	public void paint(Graphics g){
		String str="同心";
		int length =str.length();
		g.setColor(Color.blue);
		g.drawOval(60, 60, 200, 200);
		g.drawOval(60+50, 60+50, 100, 100);
		g.drawString("同心", 100+(100-length)/2, 165);
		
		
	}

	
}
